home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_300
/
348_01
/
dis48tbl.c
< prev
next >
Wrap
Text File
|
1991-05-01
|
12KB
|
264 lines
/*
** 8048 disassembler string tables
** Copyright (c) 1990, Michael G. Panas
*/
struct table dis48[] = {
{NOP, 1, 0,0, "\tNOP\t"}, /* opcode 00h */
{DBC, 1, 0,0, "\tDB\t01h"}, /* opcode 01h */
{NOP, 1, 0,0, "\tOUTL\tBUS,A"}, /* opcode 02h */
{IMM, 2, 3,0, "\tADD\tA,#"}, /* opcode 03h */
{JMP, 2, 0,0, "\tJMP\t"}, /* opcode 04h */
{NOP, 1, 0,0, "\tEN\tI"}, /* opcode 05h */
{DBC, 1, 0,0, "\tDB\t06h"}, /* opcode 06h */
{NOP, 1, 0,0, "\tDEC\tA"}, /* opcode 07h */
{NOP, 1, 0,0, "\tINS\tA,BUS"}, /* opcode 08h */
{NOP, 1, 0,0, "\tIN\tA,P1"}, /* opcode 09h */
{NOP, 1, 0,0, "\tIN\tA,P2"}, /* opcode 0ah */
{DBC, 1, 0,0, "\tDB\t0Bh"}, /* opcode 0bh */
{NOP, 1, 0,0, "\tMOVD\tA,P4"}, /* opcode 0ch */
{NOP, 1, 0,0, "\tMOVD\tA,P5"}, /* opcode 0dh */
{NOP, 1, 0,0, "\tMOVD\tA,P6"}, /* opcode 0eh */
{NOP, 1, 0,0, "\tMOVD\tA,P7"}, /* opcode 0fh */
{NOP, 1, 0,0, "\tINC\t@R0"}, /* opcode 10h */
{NOP, 1, 0,0, "\tINC\t@R1"}, /* opcode 11h */
{BRA, 2, 0,0, "\tJB0\t"}, /* opcode 12h */
{IMM, 2, 3,0, "\tADDC\tA,#"}, /* opcode 13h */
{CAL, 2, 0,0, "\tCALL\t"}, /* opcode 14h */
{NOP, 1, 0,0, "\tDIS\tI"}, /* opcode 15h */
{BRA, 2, 0,0, "\tJTF\t"}, /* opcode 16h */
{NOP, 1, 0,0, "\tINC\tA"}, /* opcode 17h */
{NOP, 1, 0,0, "\tINC\tR0"}, /* opcode 18h */
{NOP, 1, 0,0, "\tINC\tR1"}, /* opcode 19h */
{NOP, 1, 0,0, "\tINC\tR2"}, /* opcode 1ah */
{NOP, 1, 0,0, "\tINC\tR3"}, /* opcode 1bh */
{NOP, 1, 0,0, "\tINC\tR4"}, /* opcode 1ch */
{NOP, 1, 0,0, "\tINC\tR5"}, /* opcode 1dh */
{NOP, 1, 0,0, "\tINC\tR6"}, /* opcode 1eh */
{NOP, 1, 0,0, "\tINC\tR7"}, /* opcode 1fh */
{NOP, 1, 0,0, "\tXCH\tA,@R0"}, /* opcode 20h */
{NOP, 1, 0,0, "\tXCH\tA,@R1"}, /* opcode 21h */
{DBC, 1, 0,0, "\tDB\t022h"}, /* opcode 22h */
{IMM, 2, 3,0, "\tMOV\tA,#"}, /* opcode 23h */
{JMP, 2, 0,0, "\tJMP\t"}, /* opcode 24h */
{NOP, 1, 0,0, "\tEN\tTCNTI"}, /* opcode 25h */
{BRA, 2, 0,0, "\tJNT0\t"}, /* opcode 26h */
{NOP, 1, 0,0, "\tCLR\tA"}, /* opcode 27h */
{NOP, 1, 0,0, "\tXCH\tA,R0"}, /* opcode 28h */
{NOP, 1, 0,0, "\tXCH\tA,R1"}, /* opcode 29h */
{NOP, 1, 0,0, "\tXCH\tA,R2"}, /* opcode 2ah */
{NOP, 1, 0,0, "\tXCH\tA,R3"}, /* opcode 2bh */
{NOP, 1, 0,0, "\tXCH\tA,R4"}, /* opcode 2ch */
{NOP, 1, 0,0, "\tXCH\tA,R5"}, /* opcode 2dh */
{NOP, 1, 0,0, "\tXCH\tA,R6"}, /* opcode 2eh */
{NOP, 1, 0,0, "\tXCH\tA,R7"}, /* opcode 2fh */
{NOP, 1, 0,0, "\tXCHD\tA,@R0"}, /* opcode 30h */
{NOP, 1, 0,0, "\tXCHD\tA,@R1"}, /* opcode 31h */
{BRA, 2, 0,0, "\tJB1\t"}, /* opcode 32h */
{DBC, 1, 0,0, "\tDB\t033h"}, /* opcode 33h */
{CAL, 2, 0,0, "\tCALL\t"}, /* opcode 34h */
{NOP, 1, 0,0, "\tDIS\tTCNTI"}, /* opcode 35h */
{BRA, 2, 0,0, "\tJT0\t"}, /* opcode 36h */
{NOP, 1, 0,0, "\tCPL\tA"}, /* opcode 37h */
{DBC, 1, 0,0, "\tDB\t038h"}, /* opcode 38h */
{NOP, 1, 0,0, "\tOUTL\tP1,A"}, /* opcode 39h */
{NOP, 1, 0,0, "\tOUTL\tP2,A"}, /* opcode 3ah */
{DBC, 1, 0,0, "\tDB\t03bh"}, /* opcode 3bh */
{NOP, 1, 0,0, "\tMOVD\tP4,A"}, /* opcode 3ch */
{NOP, 1, 0,0, "\tMOVD\tP5,A"}, /* opcode 3dh */
{NOP, 1, 0,0, "\tMOVD\tP6,A"}, /* opcode 3eh */
{NOP, 1, 0,0, "\tMOVD\tP7,A"}, /* opcode 3fh */
{NOP, 1, 0,0, "\tORL\tA,@R0"}, /* opcode 40h */
{NOP, 1, 0,0, "\tORL\tA,@R1"}, /* opcode 41h */
{NOP, 1, 0,0, "\tMOV\tA,T"}, /* opcode 42h */
{IMM, 2, 3,0, "\tORL\tA,#"}, /* opcode 43h */
{JMP, 2, 0,0, "\tJMP\t"}, /* opcode 44h */
{NOP, 1, 0,0, "\tSTRT\tCNT"}, /* opcode 45h */
{BRA, 2, 0,0, "\tJNT1\t"}, /* opcode 46h */
{NOP, 1, 0,0, "\tSWAP\tA"}, /* opcode 47h */
{NOP, 1, 0,0, "\tORL\tA,R0"}, /* opcode 48h */
{NOP, 1, 0,0, "\tORL\tA,R1"}, /* opcode 49h */
{NOP, 1, 0,0, "\tORL\tA,R2"}, /* opcode 4ah */
{NOP, 1, 0,0, "\tORL\tA,R3"}, /* opcode 4bh */
{NOP, 1, 0,0, "\tORL\tA,R4"}, /* opcode 4ch */
{NOP, 1, 0,0, "\tORL\tA,R5"}, /* opcode 4dh */
{NOP, 1, 0,0, "\tORL\tA,R6"}, /* opcode 4eh */
{NOP, 1, 0,0, "\tORL\tA,R7"}, /* opcode 4fh */
{NOP, 1, 0,0, "\tANL\tA,@R0"}, /* opcode 50h */
{NOP, 1, 0,0, "\tANL\tA,@R1"}, /* opcode 51h */
{BRA, 2, 0,0, "\tJB2\t"}, /* opcode 52h */
{IMM, 2, 3,0, "\tANL\tA,#"}, /* opcode 53h */
{CAL, 2, 0,0, "\tCALL\t"}, /* opcode 54h */
{NOP, 1, 0,0, "\tSTRT\tT"}, /* opcode 55h */
{BRA, 2, 0,0, "\tJT1\t"}, /* opcode 56h */
{NOP, 1, 0,0, "\tDA\tA"}, /* opcode 57h */
{NOP, 1, 0,0, "\tANL\tA,R0"}, /* opcode 58h */
{NOP, 1, 0,0, "\tANL\tA,R1"}, /* opcode 59h */
{NOP, 1, 0,0, "\tANL\tA,R2"}, /* opcode 5ah */
{NOP, 1, 0,0, "\tANL\tA,R3"}, /* opcode 5bh */
{NOP, 1, 0,0, "\tANL\tA,R4"}, /* opcode 5ch */
{NOP, 1, 0,0, "\tANL\tA,R5"}, /* opcode 5dh */
{NOP, 1, 0,0, "\tANL\tA,R6"}, /* opcode 5eh */
{NOP, 1, 0,0, "\tANL\tA,R7"}, /* opcode 5fh */
{NOP, 1, 0,0, "\tADD\tA,@R0"}, /* opcode 60h */
{NOP, 1, 0,0, "\tADD\tA,@R1"}, /* opcode 61h */
{NOP, 1, 0,0, "\tMOV\tT,A"}, /* opcode 62h */
{DBC, 1, 0,0, "\tDB\t063h"}, /* opcode 63h */
{JMP, 2, 0,0, "\tJMP\t"}, /* opcode 64h */
{NOP, 1, 0,0, "\tSTOP\tTCNT"}, /* opcode 65h */
{DBC, 1, 0,0, "\tDB\t066h"}, /* opcode 66h */
{NOP, 1, 0,0, "\tRRC\tA"}, /* opcode 67h */
{NOP, 1, 0,0, "\tADD\tA,R0"}, /* opcode 68h */
{NOP, 1, 0,0, "\tADD\tA,R1"}, /* opcode 69h */
{NOP, 1, 0,0, "\tADD\tA,R2"}, /* opcode 6ah */
{NOP, 1, 0,0, "\tADD\tA,R3"}, /* opcode 6bh */
{NOP, 1, 0,0, "\tADD\tA,R4"}, /* opcode 6ch */
{NOP, 1, 0,0, "\tADD\tA,R5"}, /* opcode 6dh */
{NOP, 1, 0,0, "\tADD\tA,R6"}, /* opcode 6eh */
{NOP, 1, 0,0, "\tADD\tA,R7"}, /* opcode 6fh */
{NOP, 1, 0,0, "\tADDC\tA,@R0"}, /* opcode 70h */
{NOP, 1, 0,0, "\tADDC\tA,@R1"}, /* opcode 71h */
{BRA, 2, 0,0, "\tJB3\t"}, /* opcode 72h */
{DBC, 1, 0,0, "\tDB\t073h"}, /* opcode 73h */
{CAL, 2, 0,0, "\tCALL\t"}, /* opcode 74h */
{NOP, 1, 0,0, "\tENT0\tCLK"}, /* opcode 75h */
{BRA, 2, 0,0, "\tJF1\t"}, /* opcode 76h */
{NOP, 1, 0,0, "\tRR\tA"}, /* opcode 77h */
{NOP, 1, 0,0, "\tADDC\tA,R0"}, /* opcode 78h */
{NOP, 1, 0,0, "\tADDC\tA,R1"}, /* opcode 79h */
{NOP, 1, 0,0, "\tADDC\tA,R2"}, /* opcode 7ah */
{NOP, 1, 0,0, "\tADDC\tA,R3"}, /* opcode 7bh */
{NOP, 1, 0,0, "\tADDC\tA,R4"}, /* opcode 7ch */
{NOP, 1, 0,0, "\tADDC\tA,R5"}, /* opcode 7dh */
{NOP, 1, 0,0, "\tADDC\tA,R6"}, /* opcode 7eh */
{NOP, 1, 0,0, "\tADDC\tA,R7"}, /* opcode 7fh */
{NOP, 1, 0,0, "\tMOVX\tA,@R0"}, /* opcode 80h */
{NOP, 1, 0,0, "\tMOVX\tA,@R1"}, /* opcode 81h */
{DBC, 1, 0,0, "\tDB\t082h"}, /* opcode 82h */
{RET, 1, 0,0, "\tRET\t"}, /* opcode 83h */
{JMP, 2, 0,0, "\tJMP\t"}, /* opcode 84h */
{NOP, 1, 0,0, "\tCLR\tF0"}, /* opcode 85h */
{BRA, 2, 0,0, "\tJNI\t"}, /* opcode 86h */
{DBC, 1, 0,0, "\tDB\t087h"}, /* opcode 87h */
{IMM, 2, 5,0, "\tORL\tBUS,#"}, /* opcode 88h */
{IMM, 2, 4,0, "\tORL\tP1,#"}, /* opcode 89h */
{IMM, 2, 4,0, "\tORL\tP2,#"}, /* opcode 8ah */
{DBC, 1, 0,0, "\tDB\t08bh"}, /* opcode 8bh */
{NOP, 1, 0,0, "\tORLD\tP4,A"}, /* opcode 8ch */
{NOP, 1, 0,0, "\tORLD\tP5,A"}, /* opcode 8dh */
{NOP, 1, 0,0, "\tORLD\tP6,A"}, /* opcode 8eh */
{NOP, 1, 0,0, "\tORLD\tP7,A"}, /* opcode 8fh */
{NOP, 1, 0,0, "\tMOVX\t@R0,A"}, /* opcode 90h */
{NOP, 1, 0,0, "\tMOVX\t@R1,A"}, /* opcode 91h */
{BRA, 2, 0,0, "\tJB4\t"}, /* opcode 92h */
{RET, 1, 0,0, "\tRETR\t"}, /* opcode 93h */
{CAL, 2, 0,0, "\tCALL\t"}, /* opcode 94h */
{NOP, 1, 0,0, "\tCPL\tF0"}, /* opcode 95h */
{BRA, 2, 0,0, "\tJNZ\t"}, /* opcode 96h */
{NOP, 1, 0,0, "\tCLR\tC"}, /* opcode 97h */
{IMM, 2, 5,0, "\tANL\tBUS,#"}, /* opcode 98h */
{IMM, 2, 4,0, "\tANL\tP1,#"}, /* opcode 99h */
{IMM, 2, 4,0, "\tANL\tP2,#"}, /* opcode 9ah */
{DBC, 1, 0,0, "\tDB\t09bh"}, /* opcode 9bh */
{NOP, 1, 0,0, "\tANLD\tP4,A"}, /* opcode 9ch */
{NOP, 1, 0,0, "\tANLD\tP5,A"}, /* opcode 9dh */
{NOP, 1, 0,0, "\tANLD\tP6,A"}, /* opcode 9eh */
{NOP, 1, 0,0, "\tANLD\tP7,A"}, /* opcode 9fh */
{NOP, 1, 0,0, "\tMOV\t@R0,A"}, /* opcode a0h */
{NOP, 1, 0,0, "\tMOV\t@R1,A"}, /* opcode a1h */
{DBC, 1, 0,0, "\tDB\t0A2h"}, /* opcode a2h */
{NOP, 1, 0,0, "\tMOVP\tA,@A"}, /* opcode a3h */
{JMP, 2, 0,0, "\tJMP\t"}, /* opcode a4h */
{NOP, 1, 0,0, "\tCLR\tF1"}, /* opcode a5h */
{DBC, 1, 0,0, "\tDB\t0A6h"}, /* opcode a6h */
{NOP, 1, 0,0, "\tCPL\tC